class TranscripcionesController < ApplicationController
  
  def index
    @active_section = Section.find_by_short_name("Transcripciones");
    @categories = Category.joins("right join accounts_categories on categories.id = accounts_categories.category_id").where("section_id = ? and account_id = ?",@active_section.id,@current_account.id).order(:section_order).order(:category_order)
    if @categories
      @categories.each do |category|
        if category.category_type == 'standard'
          @active_category_id = category.id
          break
        end
      end
      @has_active_categories = @categories.count > 0
    end 
  end
  
end
